package com.ruoyi.system.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.ruoyi.system.domain.CrmStudent;

public interface IWorkWeixinService {

    String WORK_WEI_XIN_DOMAIN = "https://qyapi.weixin.qq.com/cgi-bin/";

    String WORK_WEI_XIN_TOKEN_CACHE_NAME = "accessToken";


    public String getTokenFromWeixin() throws JsonProcessingException;

    public String getTokenFromCache();

    public String getToken() throws JsonProcessingException;

//    Boolean sendStudentMessage(Long userId) throws JsonProcessingException;

//    Boolean sendStudentMessage(Long userId, String message) throws JsonProcessingException;
    Boolean sendStudentMessage(CrmStudent student) throws JsonProcessingException;

}
